<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%
        Object str=session.getAttribute("username");
        String username=null;
        if(str != null){
            username=session.getAttribute("username").toString();
        }
        if(username == null){
            request.getRequestDispatcher("/user/login.jsp").forward(request,response);
        }
    %>
    <title><%=username%></title>
    <link rel="icon" href="img/L.svg" type="image/svg+xml">
    <style>
        .info{
            width: 50%;
            left: 25%; top: 100px;
            position: absolute;
        }
    </style>
</head>
<body>
    <%
        String email="未登记";
        String phone="未登记";
        str=session.getAttribute("email");
        if(str != null) {
            email = str.toString();
        }
        str=session.getAttribute("phone");
        if(str != null) {
            phone = str.toString();
        }
    %>
    <div class="info">
        <p>用户名：<%=username%></p>
        <p>邮&emsp;箱：<%=email%></p>
        <p>电&emsp;话：<%=phone%></p>
    </div>
</body>
</html>
